home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 119
/
(Vol 119) Nov 09 2010.iso
/
TGKI-109
/
Games
/
fratboy_girlfriend_tower_defense.swf
/
scripts
/
DefineButton2_1644
/
BUTTONCONDACTION on(release).as
Wrap
Text File
|
2010-11-09
|
652b
|
13 lines
on(release){
if(_root.gold >= _root.towerCost[this.towerType][this.level])
{
_root.gold -= _root.towerCost[this.towerType][this.level];
eval("_root.tower" + _root.activeTower).level = eval("_root.tower" + _root.activeTower).level + 1;
this.level = this.level + 1;
_root.snsr._width = _root.towerDistance[this.towerType][this.level - 1];
_root.snsr._height = _root.towerDistance[this.towerType][this.level - 1];
eval("_root.tower" + _root.activeTower).sensor._height = eval("_root.tower" + _root.activeTower).sensor._width = _root.towerDistance[this.towerType][this.level - 1];
play();
}
}